* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Imports */
@font-face {
    font-family: 'Supertalls';
    src: url('fonts/Supertalls.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Termina Test';
    src: url('fonts/TerminaTest-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: 'Supertalls', sans-serif;
    --accent: #e6cfa3;
    --font-termina: 'Termina Test', sans-serif;
}

body {
    background: #0b0b0b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* Background Image */
.wbgimage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.1;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* Header Section */
.header-section {
    background: var(--accent);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0 L100 100 M100 0 L0 100" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>') repeat;
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Animated Logo Circle */
.logo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    position: relative;
}

.rotating-circle {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.logo-inner {
    position: absolute;
    inset: 10px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-inner img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.header-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    font-family: var(--font-display);
}

.header-subtitle {
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: var(--font-termina);
    font-weight: 700;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: black;
    color: #f5f1e8;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid var(--accent);
    font-family: var(--font-termina);
    text-transform: uppercase;
}

.back-button:hover {
    background: var(--accent);
    color: black;
    transform: translateX(-5px);
}

/* Main Container */
.container {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

/* Diagonal Grid Pattern Background */
.container::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
    repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255,255,255,0.02) 50px,
        rgba(255,255,255,0.02) 51px
    );
    pointer-events: none;
    z-index: 0;
}

/* Creative Asymmetric Layout */
.gallery {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 150px);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Portrait Items with Different Sizes & Positions */
.portrait-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 3px solid rgba(230, 207, 163, 0.3);
}

/* Large Portrait - Top Left */
.portrait-item:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 6;
}

/* Medium Portrait - Top Right */
.portrait-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 2 / 7;
}

/* Large Portrait - Bottom */
.portrait-item:nth-child(3) {
    grid-column: 2 / 8;
    grid-row: 5 / 9;
}

.portrait-item:hover {
    transform: scale(1.02) translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(230, 207, 163, 0.3);
    z-index: 100;
}

.portrait-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-item:hover img {
    transform: scale(1.05);
}

/* Floating Info Tag */
.portrait-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portrait-item:hover .portrait-info {
    transform: translateY(0);
}

.portrait-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.portrait-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    font-family: var(--font-termina);
}

/* Number Badge */
.portrait-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 207, 163, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-termina);
    transition: all 0.3s ease;
}

.portrait-item:hover .portrait-number {
    background: var(--accent);
    color: black;
    transform: rotate(15deg);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
    opacity: 0;
    transform: scale(0.9);
    }
    to {
    opacity: 1;
    transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid var(--accent);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 207, 163, 0.9);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: -80px; }
.lightbox-nav.next { right: -80px; }

/* Decorative Elements */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(230, 207, 163, 0.1);
    pointer-events: none;
    z-index: 0;
}

.deco-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.deco-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 5%;
    left: -50px;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(-180deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery {
    grid-template-rows: repeat(8, 120px);
    }
}

@media (max-width: 768px) {
    body {
    cursor: auto;
    }

    .custom-cursor {
    display: none;
    }

    .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    }

    .logo-container {
    width: 140px;
    height: 140px;
    }

    .container {
    padding: 2rem 1rem;
    }

    .gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    }

    .portrait-item {
    aspect-ratio: 4/5;
    min-height: 500px;
    }

    .portrait-info {
    transform: translateY(0);
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    }

    .lightbox-nav {
    width: 50px;
    height: 50px;
    }

    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}